<?php 
namespace app\index\Controller;
use app\index\model\User as UserModel;
/**
* 
*/
class User 
{
	
	public function add(){
		$user = new UserModel;
		$user['username'] = 'JR';
		$user['password'] = md5('123456');
		if($user->save()){
			return '用户添加成功';
		}else{
			return '用户添加失败';
		}	
	}
}

?>